import component.FastFood;
import ConcreteComponent.FriedRice;
import ConcreteDecorator.Bacon;
import ConcreteDecorator.Egg;

public class Client {
    public static void main(String[] args) {
        FastFood fastFood = new FriedRice();
        System.out.println(fastFood.getDesc() + " " + fastFood.cost());

        fastFood = new Egg(fastFood);
        System.out.println(fastFood.getDesc() + " " + fastFood.cost());

        fastFood = new Bacon(fastFood);

        System.out.println(fastFood.getDesc() + " " + fastFood.cost());
    }
}
